home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10883 < prev    next >
Encoding:
Text File  |  1996-08-05  |  917 b   |  28 lines

  1. Path: news.clark.net!not-for-mail
  2. From: gusty@clark.net (Harlan Messinger)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Coding Standards
  5. Date: 11 Mar 1996 17:21:08 GMT
  6. Organization: Clark Internet Services, Inc., Ellicott City, MD USA
  7. Message-ID: <4i1ne4$g99@clarknet.clark.net>
  8. References: <4hj8ek$elu@sam.inforamp.net> <4hjh5c$elk@flood.weeg.uiowa.edu> <4hv2tm$e93@news.halcyon.com>
  9. NNTP-Posting-Host: explorer.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
  14.  
  15. Norm Bryar (normanb@halcyon.com) wrote:
  16. : Except you can't put consts in a header for everyone to use and you
  17. : can't bitwise-OR enum values.  #defines still have a place.    <===
  18.  
  19. ??? What about a header with the line,
  20.  
  21.     extern const MyType MYCONST;
  22.  
  23. and a single module with the global definition
  24.  
  25.     const MyType MYCONST(/* Initialization parameters here */);
  26.  
  27.  
  28.